package com.lcache.springboot.service;

import com.lcache.core.cache.CompositeCache;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @program: lcache
 * @description: 缓存逻辑类
 * @author: Alex Wu
 * @createDate: 2025-04-22 17:05
 **/

@Service
public class CacheService {

    @Autowired
    private CompositeCache compositeCache;

    public Object get(String key) {
        return compositeCache.get(key);
    }

    public void put(String key, Object value) {
        compositeCache.put(key, value);
    }

    public void delete(String key) {

    }
}
